package com.itheima.domain;


import org.hibernate.validator.constraints.NotBlank;


public class Address {
    @NotBlank(message = "省份不能为空")
    private String provinceName;//省份名称

    private String cityName;//城市名称

    private String detail;//详细住址

    private String zipCode;//邮政编码

    public Address() {
    }

    public Address(String provinceName, String cityName, String detail, String zipCode) {
        this.provinceName = provinceName;
        this.cityName = cityName;
        this.detail = detail;
        this.zipCode = zipCode;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    @Override
    public String toString() {
        return "Address{" +
                "provinceName='" + provinceName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", detail='" + detail + '\'' +
                ", zipCode='" + zipCode + '\'' +
                '}';
    }
}
